import { createApp } from 'vue'
import App from './App.vue'
import router, { setupRouter } from '/@ts/router'
import {setupStore, store} from '/@ts/store/index';
import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/display.css';//1.1.0-beta.10 版本
import 'element-plus/dist/index.css'//1.1.0-beta.10 版本
import 'vue-cropper/dist/index.css'//剪接
import 'animate.css/animate.min.css';
import "../node_modules/cesium/Build/Cesium/Widgets/widgets.css";//3D卫星定位样式
import * as ElIcon from '@element-plus/icons-vue'
import 'element-plus/theme-chalk/dark/css-vars.css'// 由于当前界面的UI是自定义的所以无效
import './init.scss';
// 国际化
import locale from 'element-plus/lib/locale/lang/zh-cn'
import 'dayjs/locale/zh-cn'
import { setupDirectivePage } from '/@ts/directive/page';
import TableV2 from "/@/components/table/tableV2.vue";

const app =createApp(App)
for (const key in ElIcon) {
    app.component(key,ElIcon[key])
}
app.component('TableV2',TableV2)
app.use(ElementPlus, { locale })//element-plus挂载

setupStore(app)
setupRouter(app)

setupDirectivePage(app)
app.mount('#app')
